using System;
using System.Collections.Generic;
using System.Runtime.Serialization;

namespace PSE.Hosting.ServiceHoster.Services.DataContracts
{
    /// <summary>
    /// Data Contract Class - Service
    /// </summary>
    [DataContract(Namespace = "http://www.bovespa.com.br/ServiceHoster.Data", Name = "Service")]
    public partial class Service
    {
        #region Fields

        private string _name;
        private bool _isAlive;
        private string _userName;
        private string _assembly;
        private string _codeBase;
        private string _mexAddress;
        private bool _isValid;

        #endregion

        #region Public Members

        /// <summary>
        /// 
        /// </summary>
        [DataMember(IsRequired = true, Name = "Name", Order = 0)]
        public System.String Name
        {
            get { return _name; }
            set { _name = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        [DataMember(IsRequired = true, Name = "IsAlive", Order = 1)]
        public System.Boolean IsAlive
        {
            get { return _isAlive; }
            set { _isAlive = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        [DataMember(IsRequired = true, Name = "UserName", Order = 2)]
        public System.String UserName
        {
            get { return _userName; }
            set { _userName = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        [DataMember(IsRequired = true, Name = "Assembly", Order = 3)]
        public System.String Assembly
        {
            get { return _assembly; }
            set { _assembly = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        [DataMember(IsRequired = true, Name = "CodeBase", Order = 4)]
        public System.String CodeBase
        {
            get { return _codeBase; }
            set { _codeBase = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        [DataMember(IsRequired = true, Name = "MexAddress", Order = 5)]
        public System.String MexAddress
        {
            get { return _mexAddress; }
            set { _mexAddress = value; }
        }

        /// <summary>
        /// 
        /// </summary>
        [DataMember(IsRequired = true, Name = "IsValid", Order = 6)]
        public System.Boolean IsValid
        {
            get { return _isValid; }
            set { _isValid = value; }
        }

        #endregion
    }
}
